package com.company.genealogy.common.constant;

/**
 * JWT相关常量定义
 * @author chenzx
 * @since 2025/7/31 22:10
 */
public final class JwtConstants {

    private JwtConstants() {
        // 工具类，禁止实例化
    }

    /** JWT载荷中用户ID字段 */
    public static final String CLAIM_USER_ID = "userId";
    /** JWT载荷中用户名字段 */
    public static final String CLAIM_USERNAME = "username";
    /** JWT载荷中成员ID字段 */
    public static final String CLAIM_MEMBER_ID = "memberId";
    /** JWT载荷中权限字段 */
    public static final String CLAIM_AUTHORITIES = "authorities";
    /** JWT载荷中用户类型字段 */
    public static final String CLAIM_USER_TYPE = "userType";
    /** JWT载荷中家族ID字段 */
    public static final String CLAIM_CLAN_ID = "clanId";
    /** JWT载荷中分支ID字段 */
    public static final String CLAIM_BRANCH_ID = "branchId";
    /** JWT认证头前缀 */
    public static final String BEARER_PREFIX = "Bearer ";
}
